package cn.edu.hunau.oop.day02.override;

import org.junit.Test;

/**
 * @author hb
 * @date 2025-08-05 16:13:41
 */
public class OverrideTest {

    @Test
    public void test(){
        Poo p1=new Poo();
        //p1.call();

        Poo p2=new Coo();
       //p2.call();
    }
}

class Poo{
    private void call(){
        System.out.println("Poo call.....");
    }
}
class Coo extends Poo{


     public void call(){
        System.out.println("Coo call.....");
    }
}

class Goo{
    public long add(int a, long b){
        return a+b;
    }
}

class Koo extends Goo{
    //public long add(int a, int b) { return (long)(a+b); }
   // long add(int a, int b) { return (long)(a+b); }
  //  public int add(int a, long b) { return  (int)(a+b) ; }
    // long add(int a, long b) { return a+b ; }
}







